package com.cicc.txn.dom.msg.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class MsgController {

    @PostMapping("/sendMsg")
    public String sendMsg(@RequestParam("name") String msg) {
        log.info("feign msg : {}", msg);
        return String.format("feign msg:%s", msg);
    }
}
